/*
 * @Author: zengxiaolong 1513107860@qq.com
 * @Date: 2023-02-16 09:30:51
 * @LastEditors: zengxiaolong 1513107860@qq.com
 * @LastEditTime: 2023-02-28 15:37:26
 * @FilePath: \Freshmen-enrollment-management\src\api\finance.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
 */
import request from '@/utils/request'

// finances search 资源查找
export function getFinanceLists(data) {
  return request({
    url: '/finances/search',
    method: 'post',
    data
  })
}

// finances add 资源新增
export function addFinance(data) {
  return request({
    url: '/finances/add',
    method: 'post',
    data
  })
}

// finances delete 资源删除
export function deleteFinance(params) {
  return request({
    url: '/finances/delete',
    method: 'post',
    params
  })
}

// finances update 资源更新
export function updateFinance(data) {
  return request({
    url: '/finances/update',
    method: 'post',
    data
  })
}

// finances get 获取所有财务
export function getAllFinance() {
  return request({
    url: '/finances/get',
    method: 'get'
  })
}

